'use strict';
const path = require('path');

module.exports = appInfo => {
    const config = {};
    config.keys = 'egg-learn_1524909117527_2448';

    config.grpc = {
        endpoint: 'localhost:50051',
        // dir: 'app/proto', // proto files dir, relative path
        // property: 'grpc', // default attach to `ctx.grpc.**`
        // loadOpts: { convertFieldsToCamelCase: true, }, // message field case: `string user_name` -> `userName`
    };

    config.tortoise = {
        client: {
            uri: 'amqp://192.168.99.100',
            //uri: 'amqp://admin:123456@192.168.99.100',
            // uri: 'amqp://guest:guest@192.168.99.100',
        },
    };

    config.view = {
        defaultViewEngine: 'nunjucks',
        defaultExtension: '.html',
        root: [
            path.join(appInfo.baseDir, 'app/view')
        ].join(',')
    };

    return config;
};



